#ifndef __JARVCORE_H_
#define __JARVCORE_H_
#include "KLib.h"
#include "ThreadPool.h"
#include "SocketListenerTask.h"
#include "HTTPHandler.h"

#ifdef JARVSPEECH
#include "SpeechCore.h"
#endif
#include "Lock.h"
SK
class JarvCore
{
private:
    #ifdef JARVSPEECH
	SpeechCore *speech;
	Lock *speechLock;
#endif
    ThreadPool *pool;

	String appPath;

	void processCommandLine ();
public:
	JarvCore();
	~JarvCore();

	void init (void);

	void speak (const String& text);
	void scheduleTask (Task *task);
	
};

EK

#endif